> If someone is offended by being asked to code something like this then they are probably going to be offended by the work they'll have to do once they start employment.
I don't agree with you because it's not the same context. In a day to day job context, you can focus on doing it correctly while in an interview there are a lot of factors that can affect your focus/creativity/attention.