I've literally had people ask me these types of questions while on the phone. And I "fail" on purpose because I won't attempt them. That's the point.
The fact that the internet exists and the interviewer could have used an online utility doesn't change my responsibility in that equation, that's just nuts.