Expand Array with Numbers provided

You are given a character array like this a3b1c1d1e4f0g11. You will have to expand the array by repeating the characters denoted by the following numbers. For example the above character array will be expanded to aaabcdeeeeggggggggggg. The given array will have more than enough trailing spaces such that you can modify the array in place.