Google Interview Question

Return array without duplicates (consider space complexity)