Pergunta de entrevista da empresa Microsoft

Count and say, code for next permutations