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 partial stack is a valid word, like building a tower with stable layers.
root ↓ t -> r -> i -> e ↑ ↑ ↑ ↑ w e e null
