Pergunta de entrevista da empresa Teradyne

Write a program to count the frequency of repeated words in a character?