Question d’entretien chez Amazon

Sort string without any repeating adjacent characters.