Question d’entretien chez Amazon

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