Brightspot interview question

How to remove duplicate items in an array.