Domanda di colloquio di KPMG

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