Cybage Software interview question

Removing duplicates from an array