Rajat Mittal's submission of Endgame | CodeChef