Yash Chandnani's submission of Wanderer | CodeChef