Microsoft interview question

Delete all duplicates in an array.