Pregunta de entrevista de Microsoft

Count and say, code for next permutations