Google Interview Question

Find the frequency of a particular substring