Pergunta de entrevista da empresa OneShield

Write a program to count the frequency of all characters in a string.