結果 : write and explain knuth morris pratt algorithm