Gaurav interview question

write a program to find frequency of word in a program