LeetCode
Inorder Successor in BST
Click
here
for an explanation.