Meta interview question

Remove duplicates from array