singleNumber and singleNumberII solution