Bloomberg Interview Question

find the index of a string in another string