Bloomberg Interview Question

Decompressing strings based on a specific pattern