String Matching Algorithm Leetcode 75