Sandeep Singh's submission of Endgame | CodeChef