Pergunta de entrevista da empresa KPMG

In an array of strings, remove all the duplicates and print the modified array.