Lymbyc interview question

Finding substring in a given statement without using inbuilt methods