Every element in `nums` appears twice except one. Implement `singleNumber(nums)` returning the element that appears once, using XOR.
Run your code to see results.