Mental Model
A trie stores words by sharing common prefixes, making it easy to check if a word exists by following the path of letters.
Analogy: Imagine a tree where each branch is a letter, and walking down branches spells out words. To find a word, you just follow the branches matching each letter.
root
↓
a -> p -> p -> l -> e [end]
↓
e -> null
Each arrow points to the next letter node. The [end] marks a complete word.