Concept Flow - Validate if Tree is BST
Start at root node
Check if node is null?
Yes→Return True
No
Check node value > min and < max?
No→Return False
Yes
Recurse left subtree with updated max = node value
Recurse right subtree with updated min = node value
Return left_result AND right_result
We start at the root and check if each node's value fits within allowed min and max limits, updating these limits as we go down left and right subtrees.