Amit Dwivedi's submission of Ambiguous Permutations | CodeChef