Brillio Interview Question

Code on finding a substring in a string