AVASOFT Interview Question

Do a frequency count for the given string