Microsoft Interview Question

Count and say, code for next permutations