Medtronic Interview Question

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