Pergunta de entrevista da empresa Informatica

How would we find the first most occurring character?