Given a non-empty array nums in which every element appears exactly twice except for one element that appears once, return that single element.
nums
Aim for linear time and constant extra space.
[2,2,1]
[4,1,2,1,2]
[7]
[-1,-1,-2]
[0,1,0]
[5,3,5,4,3]