結果 : brute force pattern matching algorithm with example