Question d’entretien chez Palo Alto Networks

Write an algorithm that given an array possibly containing duplicates, returns an array of the unique elements.