OLA Electric interview question

How to find a substring in a string