Pergunta de entrevista da empresa Miller Thomson

Write the program aabbccc and output should be a2b2c3