Given a binary tree root, find the maximum value of over all pairs where is an ancestor of (ancestor means parent, grandparent, etc.).
Return that maximum difference.
Input: root = [8,3,10,1,6,null,14,null,null,4,7,13]
Output: 7
Input: root = [1,null,2,null,0,3]
Output: 3
Accepted:
Submission: