Concept Flow - BST Inorder Predecessor
Start at root node
Search for target node
Found target node?
No→Return None
Yes
Does target have left child?
Yes→Go to left child
Go right as far as possible
Go up to ancestor where target is in right subtree
Return that ancestor as predecessor
Done
Find the node's inorder predecessor by searching the tree, then either going left and rightmost, or up to ancestor.
