Pergunta de entrevista da empresa Capgemini

int Question : AABBBCCCCaaaaa , Expected output is below Output:A2B3C4a4