Verizon interview question

How do you remove duplicates from an array?