iCapital interview question

Remove duplicate words from String Array.