Infosys interview question

Oops, Collections, Find duplicate string