Binary Tree Maximum Path Sum

A path is any sequence of nodes connected by edges. Return the maximum sum of any path in the tree.

Examples
Input: [1,2,3]
Output: 6
Hints
Related Problems

Binary Tree Maximum Path Sum

A path is any sequence of nodes connected by edges. Return the maximum sum of any path in the tree.