Question d’entretien chez Microsoft

given an array with strings print the unique ones