Deloitte interview question

Delete duplicate elements in an array