Abhinav Jain's submission of Ambiguous Permutations | CodeChef