OLA Electric Interview Question

How to find a substring in a string