Intel Corporation Interview Question

Algorithm to find substring in a string, can be used kmp