Pregunta de entrevista de Bloomberg

Decompressing strings based on a specific pattern