LeetCode
Maximum Difference Between Node and Ancestor
Click
here
for an explanation.