This was almost painful to read, mostly because I've been through the same kind of interview many times. It is also amusing that another comment here is assuming that you were the interviewer in this example, when you were actually the interviewee.
The depressing thing is that this interviewer probably went back to HR (if the company even had an HR department) and told them that you didn't know anything about basic sets (whatever that means).
The interviewer's line of questioning amounted to guess what number I'm thinking of that is between 1 and 100.