Revolut interview question

Duplicate character in a String one c program find the error