Given the root of a binary search tree with distinct values, change every node so that its new value is the original value plus the sum of all values in the tree greater than it. Return the root of the modified tree.
Given the root of a binary search tree with distinct values, change every node so that its new value is the original value plus the sum of all values in the tree greater than it. Return the root of the modified tree.