Mental Model
A trie stores words by sharing common prefixes, making it easy to check if a word exists by following letters step-by-step.
Analogy: Imagine a tree of roads where each road sign is a letter. To find a word, you follow the signs letter by letter until you reach the end of the word or get lost.
root ↓ a -> b -> c -> null ↓ t (end) Each arrow points to the next letter node in the trie.
