This is hazing, and OP is right to be upset. They were put into a Catch-22 by the interviewer and I see no reason to believe that was accidental.
I see a lot of replies that accuse OP of oversharing, and that's bullshit. In any job interview, the expectation is that you answer questions to the best of your ability. If "I'm not comfortable answering that" is an acceptable answer, that is an exception to the norm and it should be made clear ahead of time.