Bloomberg interview question

Remove duplicates from a array