I think those sorts of questions are highly ethical, and should in fact be encouraged.
By asking deep questions about actual problems the company is facing, you get a much better sense of a candidate's relevant abilities than with generic algorithm questions.
By asking deep questions about actual problems the company is facing, you get a much better sense of a candidate's relevant abilities than with generic algorithm questions.