leetcode solution for 'single number'