solution to singleNumber