Partition into Permutations | CodeChef