Query on a tree VI | CodeChef