Dell Technologies Interview Question

how to remove duplicates from an array