Pergunta de entrevista da empresa Morgan Stanley

Given a string, find the most frequently occurring character