Easy
Given two strings s (haystack) and t (needle), return the index of the first occurrence of t in s, or -1 if not present.
s
t
-1
Input: s = "sadbutsad", t = "sad" Output: 0
Input: s = "leetcode", t = "leeto" Output: -1