Question d’entretien chez Target

Asked to remove duplicates in a unsorted array without external data structures.