LeetCode
Trim a Binary Search Tree
Click
here
for an explanation.