Mental Model
We want to find how many words start with a certain beginning part. We check each word and count if it matches the start.
Analogy: Imagine you have a box of books and you want to count how many titles start with the word 'The'. You look at each title and count those that begin with 'The'.
Words: [apple, app, ape, bat, ball] Prefix: 'ap' Count how many words start with 'ap' List: apple -> app -> ape -> bat -> ball -> null Prefix: ap
