Frage im Vorstellungsgespräch bei BNP Paribas

Technical round in java Wap to print aabbbcccc when input string is a1b2c3