Pergunta de entrevista da empresa Google

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