Brightspot Interview Question

How to remove duplicate items in an array.