Concept Flow - BST Inorder Predecessor
Start at root
Find node with given key
Does node have left child?
No→Go up to ancestors
Find ancestor where node is in right subtree
Go to left child
Go to rightmost node in left subtree
This node is inorder predecessor
Done
Start from root, find the node. If it has a left child, go left then rightmost to find predecessor. Otherwise, go up ancestors to find where node is in right subtree.
