Dell Technologies interview question

how to remove duplicates from an array