Pregunta de entrevista de Cadence Design Systems

How to remove adjacent duplicates in a string