Provide a solution for the CodeForces problem #548.
- Should be implemented in Python
- Python script should be executable
- Input should be consumed as yaml file. (provide input example as part of the proposed solution)
- Solution should be submitted as Pull Request to this repository
- Code Style
- Immutability
- Unittests