Two ways to approach this.
Maintain a hash of characters (int array of 128 ascii characters) and then incremement the count. At the end run through the array to find the highest count instance.
Second method. Sort the string and then count the repeated character instances. Maintain a highest counter while you count.