Mental Model
Find the closest shared parent node of two given nodes in a tree by checking where their paths meet first.
Analogy: Imagine two friends walking up a family tree to find their closest common grandparent where their paths cross.
3
/ \
5 1
/ \ / \
6 2 0 8
/ \
7 4
Nodes: 5 and 1
Goal: Find their lowest common ancestor