Concept Flow - Floor and Ceil in BST
Start at root
Compare key with node value
Floor = Ceil = node value
→Done
Go to left subtree
Go to right subtree
Repeat until leaf
Return floor and ceil found
Start from the root and compare the key with current node's value. Move left if key is smaller, right if larger, updating floor or ceil candidates until reaching a leaf.