Indeed Interview Question

Find number of substrings within another string.