Cpp Find Substring Leetcode Blind