Expected behavior This solution isn’t expected to pass because it runs in O (n²) time, and the constraints state that both the needle and haystack can be up to 10⁴ characters long—implying up to 10⁸ ...