Question d’entretien chez Revolut

Duplicate character in a String one c program find the error