Goldman Sachs Interview Question

Occurrences of substring in a string.