Lymbyc Interview Question

Finding substring in a given statement without using inbuilt methods