Write a program to solve the Search in XML problem on Sphere http://www.spoj.com/problems/PT07H/