
Given the root of a binary tree, return the maximum sum of any path. A path may start and end at any nodes, must follow parent-child edges, and cannot revisit a node.
root = [1,2,3]Output6WhyThe best path is 2 -> 1 -> 3.root = [-10,9,20,null,null,15,7]Output42WhyThe best path is 15 -> 20 -> 7.1 <= number of nodes <= 3 * 10^4-1000 <= node value <= 1000The input is a valid binary tree