Comcast Interview Question

Occurences of given string in a word.