Sabre Interview Question

Code to find a frequency of a substring in a string.