Missing Permutation

From Rosetta Code