Mental Model
A binary search tree (BST) is a tree where every node's left child is smaller and right child is bigger than the node itself. We check this by making sure all nodes follow this rule from top to bottom.
Analogy: Imagine a family tree where every parent is older than their children on the right side and younger than their children on the left side. To check if the tree is correct, you verify each parent's age fits this rule with their children.
5
/ \
3 7
/ \ \
2 4 8