GEP Interview Question

KMP String matching algorithm