Every element in `nums` appears twice except one. Implement `singleNumber(nums)` returning the element that appears once, using XOR.
+ 1 hidden test run on Submit.
XOR of all elements leaves the unique value, in O(n) time and O(1) space.
Run your code to see results.