Dinesh Goyal's submission of Ambiguous Permutations | CodeChef