Pregunta de entrevista de FDM Group

How to find duplicate characters in strings?