Pergunta de entrevista da empresa Netflix

Write a function that takes a string as an arg, and returns the same string with all duplicates removed.