Nikolay Domashenko's submission of End Sorted | CodeChef