by AskAI

Solutions:

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