IDZ Digital interview question

Given string input: a2b3c4 output: aabbbccc