by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
This solution is correct and demonstrates a good understanding of how to solve the problem. The approach is straightforward and the code is clean and easy to read.