Indeed interview question

Find number of substrings within another string.