Medtronic interview question

Write a program to find out the most repeated character in a string?