So I\'m trying to make this program where you input a string and the program finds all the instances of a character inside the string. I have this code