Bloomberg interview question

Decode a string: input - 3[a]2[b3[c]] output - aaabcccbccc