I currently have a function below to find the first nonrepeating letter. For example, for the string carro, that letter would be c; for the string
carro
c