rohan's submission of Travelling in the Graph | CodeChef