Queries on Tree | CodeChef