Intel Corporation interview question

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