Devesh Agarwal's submission of Traversing Trees | CodeChef