I had a similar experience with another company. At one point during the interview, the HR department asked me to do a really stupid exercise, despite the fact that I am an engineer with over 20 years of experience.
I wrote an email saying I would not pursue the position, and they wrote back asking me to have another interview with them. I politely declined.
They probably understood that their method was not good.