Given two strings haystack and needle, return the index of the first occurrence of needle within haystack. If needle does not exist as a substring of haystack, return
Constraints:
haystack.length, needle.length
haystack and needle consist of only lowercase English characters
Given two strings haystack and needle, return the index of the first occurrence of needle within haystack. If needle does not exist as a substring of haystack, return
Constraints:
haystack.length, needle.length
haystack and needle consist of only lowercase English characters