Pregunta de entrevista de Maslo Consulting

Compress the string with out breaking the sequence.