I am trying to code a program to find the index of multiple substrings of a string but I am stuck! See the examples bellow:
Find : 'yes'
Input = 'adnyesdapodyesndudndnyesae'
Output = [3,11,21]
Find : 'b'
Input = 'bbbbbbb'
Output = [0,1,2,3,4,5,6]