Optum interview question

Remove Duplicates from an array