This works really well for in-person technical questions (live coding or design). I've vetted this over hundreds of candidates at this point.
It has been years since I've given a take-home assignment, but the same basic rules apply.
https://github.com/joinpapa/foobar-takehome
You may think, "it's trivial" and you would be right. But believe it or not a ton of people couldn't complete it.
I think it's a good take home because it'll show you what the candidate values when writing code. It's also respectful of the candidates time.