Accelirate interview question

Given an array, remove all duplicate entries.