Question d’entretien chez Microsoft

Count and say, code for next permutations