Question d’entretien chez Amazon

Find frequency in a given string