Pregunta de entrevista de Accenture

Finding duplicate character from a string