Sameer Raj's submission of Ambiguous Permutations | CodeChef