Solve the sum to leaf problem using a simpler solution.