program demonstating how to identify a missing number in a sequence using java with a O(n) algorithm