GEP interview question

KMP String matching algorithm