ZoomInfo interview question

Remove all duplicates from an array