Mental Model
Find the number that appears more than half the time by canceling out different numbers until one candidate remains.
Analogy: Imagine a room where people vote for their favorite color. Every time two people with different colors meet, they leave the room together. The color left at the end is the majority color.
Array: [2, 2, 1, 1, 1, 2, 2] Candidate: 2 ↑ Count: 1
