Partial Permutations

Solution to Rosalind Problem 027: Partial Permutations