by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
This is a great solution! The candidate has thought about the problem and broken it down into smaller pieces that are easier to solve. The candidate has also written helper functions to make the code more readable.