Mixhalo Interview Question

Array duplicate elements and delete duplicates as efficiently as possible