Bloomberg interview question

Decompressing strings based on a specific pattern