Hi is there any function that would return the indexOf all apples in this string :

string = orange apple apple orange grape grape apple orange