Find the missing element in a given permutation.