StackBox Interview Question

remove duplicates from an array