HERE Technologies interview question

remove duplicates from int array using javascript