Mental Model
XORing a number with itself cancels it out to zero, so XORing all numbers leaves only the one that appears once.
Analogy: Imagine you have pairs of socks in a drawer. If you take out all socks and pair them up, only the single unmatched sock remains visible.
Array: [2, 3, 2, 4, 3] XOR process: 0 ⊕ 2 -> 2 2 ⊕ 3 -> 1 1 ⊕ 2 -> 3 3 ⊕ 4 -> 7 7 ⊕ 3 -> 4 Result: 4 (only non-repeating)
