Pregunta de entrevista de Cisco

remove all adjacent duplicates in string. new version