結果 : explain knuth morris pratt algorithm with example