Meta interview question

Compress a sequence of digits.