Accenture interview question

Finding duplicate character from a string