Ambiguous permutations

Sign in to test your solution.