Karan Malhotra's submission of Ambiguous Permutations | CodeChef