It's not an appropriate interview question. Maybe the interviewer didn't realize a line would be crossed by asking.