Implement path sum problem for a tree, fairly simple to code.