Pergunta de entrevista da empresa Qualcomm

Write a function to return the character from a string which has the maximum count