leetcode SingleNumber O(n) solution