Amazon Interview Question

Find frequency in a given string