Pergunta de entrevista da empresa Goldman Sachs

Repeated characters string encoding (aabbbc -> a2b3c)