Every value in nums appears exactly twice except one value that appears once. Return the unpaired value.
Input / output
nums: integer[]Examples
[2,2,1] returns 1.[4,1,2,1,2] returns 4.Constraints
1 <= nums.length <= 100,000nums.length is oddFollow-up Why does XOR remove paired values regardless of their order?