LinkedIn Interview Question

Write an algorithm that returns T or F in finding a substring in a string