Amazon interview question

Find frequency in a given string