Given two strings haystack and needle, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. An empty needle returns 0. Input: '"haystack", "needle"'.
Input: '"haystack", "needle"'.
Output: Integer — index or -1.
Input: "sadbutsad", "sad"
Output: 0
Explanation: First 'sad' at index 0.Input: "leetcode", "leeto"
Output: -1
Explanation: Not present.Input: "hello", "ll"
Output: 2
Explanation: 'll' at index 2.1<=haystack.length<=10^40<=needle.length<=10^4