Frage im Vorstellungsgespräch bei Microsoft

write function to remove the repeating characters from a given string