Concept Flow - BST Inorder Successor
Start at root node
Search for target node
Found target node?
No→Return None
Yes
Does target have right child?
Yes→Go to right child
Go left as far as possible
Go up to parent until node is left child
Return found successor or None
Find the inorder successor by first locating the target node, then either going to its right subtree's leftmost node or moving up to find the nearest ancestor where target is in left subtree.