rewrite leetcode single number i ii