Solve binary tree's max path sum problem in leetcode.