Earlier quoted context omitted.
I always urge caution when internets fill with the trendy ire at "puzzle" questions in interviews. Yes, some questions are stupid. Yes, some interviews value the wrong things. Yes actual "brain teasers" and "gotcha" questions as an intelligence test are asinine. Yes, yes, and yes. But... there are questions that sound very similar to such questions that are perfectly legitimate analogies to various computer science t…
Why give interviewees toy problems? Give them real problems. There are plenty at all levels of abstraction.
When you start trying to pin these types of questions on "actual" problems you get tons of non-answers. You get distracted, easily. They start worrying about things like libraries, and language issues, and implementation details, etc, etc. And when you try to focus them on the algorithm portion of the question, they get flustered and feel like they are screwing it up.
There is a time and place for stripping away the computer and asking about simple algorithm development to see how people think. People who get offended by abstract problem solving are sending out red flags.