Bright Data interview question

a function that removes all duplicates in a string array