Mental Model
A trie stores words by sharing common starting letters, making it easy to find all words starting with a given prefix quickly.
Analogy: Imagine a tree where each branch is a letter, and paths from the root to leaves form words. To find words starting with a prefix, you just follow the branches for those letters and then collect all words below.
root
↓
a -> p -> p -> l -> e [word end]
↓
e -> null
Each arrow -> is a letter link, and nodes mark letters. Words end at special nodes.