Frage im Vorstellungsgespräch bei ZapLabs

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