Accelirate Interview Question

Given an array, remove all duplicate entries.