Pregunta de entrevista de Microsoft

Delete all duplicates in an array.