Dinesh Goyal's submission of Gamer | CodeChef