Mental Model
Find the element that appears more than half the time by canceling out different elements.
Analogy: Imagine a room where people pair up and leave if they disagree. The one left standing is the majority.
Array: [2, 2, 1, 1, 1, 2, 2] Index: 0 1 2 3 4 5 6 Candidate: ↑ at index 0 Count: 1
