Pregunta de entrevista de Mercer

remove consecutive duplicate character from a string.