Mental Model
Count how many times each item appears by using a map that remembers counts.
Analogy: Imagine you have a basket of fruits and you write down how many apples, bananas, and oranges you have on a piece of paper.
Basket: [apple, banana, apple, orange, banana] Hash Map: apple -> 2 banana -> 2 orange -> 1
