However in the age of AI this can be easily completed with ChatGPT… what’s everyone’s go to for interview tasks?
You could also show them another solution (maybe one with a bug?) and ask them to explain it and compare with their solution.
If they are leaning heavily on an LLM it should show up during the follow-on discussion.