Question d’entretien chez ZapLabs

Given an integer array with duplicates, remove the duplicates from the array and return a new array.