code for Single Number II