Mental Model
XORing a number with itself cancels 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 alone.
Array: [2, 3, 2, 4, 3] XOR process: 2 ⊕ 3 ⊕ 2 ⊕ 4 ⊕ 3 = 4
