Array Dedup

How to deduplicate an array