Question d’entretien chez WekaIO

Compress a string - aaabbaa -> a3b2a2