Log in to run or submit
XOR cancels pairs: a^a=0, 0^b=b.
a^a=0
0^b=b
XOR all values; remaining value is the one that appears once.