Leetcode Single Number Solution Java