結果 : find substring time complexity