Find the starting index of a substring in a string, or -1 if it doesn't occur.
Constraints
Example
>>> first_occurrence("hello", "ll")
2
>>> first_occurrence("hello", "")
0
>>> first_occurrence("hello", "bark")
-1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints