Or worse, go to an interview, they ask you how to fix a specific problem, never hear from them again. Later find out that they had no openings, just wanted the problem solved.
I can't imagine a candidate being:
A. Someone who can solve engineering problems we can't with no context in under an hour.
B. Someone we don't want to make an offer too.
Not all employers have dedicated IT teams, behaviour such as this fixes a problem without having to pay for it, while giving false hope to interviewees.
outside of an intern or junior these types of questions are such garbage. Do your teams write a lot of trivial, isolated functions in the day to day?
This question and the others I tried to ask usually have a ton of possible solutions and someone who knows how to code or can at least talk with me about coding can come up with one.