AVASOFT interview question

Do a frequency count for the given string