Mental Model
We build a tree where each path from root to a node forms a prefix of words. We find the longest word where every prefix is also a word.
Analogy: Imagine a tree of building blocks where each block adds a letter. We only keep paths where every step is a valid smaller word, like building a tower where each floor is stable.
root ↓ t -> r -> i -> e ↑ (start)
