Shivam Kalra's submission of Wanderer | CodeChef