Mental Model
We want to find how many words start with a certain beginning part. We look at each word and check if it begins with that part.
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 if it starts with 'The'.
words: [apple, app, ape, bat, ball] prefix: app Check each word: apple -> starts with app app -> starts with app ape -> does not bat -> does not ball -> does not