Single Number II in Java