Find the XOR of Numbers Which Appear Twice
Count each value, then xor only the values whose count is exactly two; a value seen once or three times is skipped.
Count each value, then xor only the values whose count is exactly two; a value seen once or three times is skipped.