Devansh Bajpai's submission of Ambiguous Permutations | CodeChef