Pregunta de entrevista de Revolut

Duplicate character in a String one c program find the error