sugnay ghodasara's submission of Endgame | CodeChef