This Java program computes the missing element of a given permutation. This program has an O(n) time complexity.