You need to decompress text. The compressed version has a number next to each symbol/letter, representing the amount of time that symbol should appear. For example, a2b3 is the compressed version of aabbb
Write a program that takes the compressed text as input and outputs the decompressed version.
A single string with letters/symbols, each followed by a number.
A string, representing the decompressed text.
k2&4b1
kk&&&&b
The letter k appears 2 times, the symbol & - 4 times and the letter b - 1 time.