Frage im Vorstellungsgespräch bei Google

Return array without duplicates (consider space complexity)