Proofpoint interview question

Split and identify duplicate strings