Question d’entretien chez Intel Corporation

Given an array containing duplicates, return array with no duplicates