Path in tree that sums upto X