Update Single Number II [iteration].java