Question d’entretien chez Magenic

Write a function to remove duplicates from an array.