Nikolay Domashenko's submission of Daily Train | CodeChef