Pergunta de entrevista da empresa Amazon

Remove duplicate consecutive repeated letters in a string and return the result.