rewrite leetcode implement strStr()