Nikolay Domashenko's submission of Cut the Board | CodeChef