Infosys Interview Question

Oops, Collections, Find duplicate string