trying to use a sum tree to find the answer