Given an array of numbers
nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.
nums = [1, 2, 1, 3, 2, 5], return
[5, 3]is also correct.
Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.