Create missing or duplicate number in array.java