Cognizant Interview Question

Find duplicate characters in string