strStr ac, KMP algorithm