Nikolay Domashenko's submission of First and Last | CodeChef