Morgan Stanley Interview Question

How to get the character that occurs the most in a string?