Question d’entretien chez Google

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