Naive Algorithm String Matching Leetcode 754