Pergunta de entrevista da empresa Maslo Consulting

Compress the string with out breaking the sequence.