Return the index of the first occurrence of needle in haystack, or -1 if absent.
needle
haystack
-1
Input
Output: the index, or -1.
sadbutsad sad
0
leetcode leeto
Run your code against the sample tests, or Submit to run the full suite.