Domanda di colloquio di Google

given a string encoding: a1b2c2 (lower case alphabets followed with their count)= abbcc