Pergunta de entrevista da empresa Nagarro

Find frequency of each character of given string.