Finding the unique number in sequence from double numbers using "xor"