Lowest Common Ancestor in BST

Build BST → find LCA of two nodes

LCA will appear here...
BST LCA Property (O(h) time):
• If both values ≤ current node → search left
• If both values ≥ current node → search right
• Otherwise → current node is the LCA

Assumes both nodes exist in the tree (as per typical problem constraints)