Mental Model
We want to find how many words start with a certain beginning part (prefix). We look through all words and count those that begin the same way.
Analogy: Imagine a library where you want to count all books whose titles start with the same first few letters, like all books starting with 'The'. You scan the titles and count matches.
words: ["apple", "app", "ape", "bat", "ball"] prefix: "ap" Count how many words start with "ap".
