Domanda di colloquio di Amazon

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