Concept Flow - BST Inorder Successor
Start at root
Find node with given key
Does node have right child?
Yes→Go to right child
Find leftmost node in right subtree
Go up to parent while node is right child
Return parent as successor or NULL if none
Find the node, then if it has right child, successor is leftmost in right subtree; else go up to find first ancestor where node is in left subtree.