Pregunta de entrevista de Miller Thomson

Write the program aabbccc and output should be a2b2c3