Implement a function to find the first occurrence of a target substring within a given string. Return the index of the first occurrence of the substring, or -1 if the substring is not part of the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.