Vivek Puri's submission of Ambiguous Permutations | CodeChef