You are given a string sentence containing words separated by single spaces, and a string searchWord.
Your task is to find the first word in the sentence that has searchWord as a prefix. Return the 1-indexed position of this word.
If searchWord is a prefix of multiple words, you must return the index of the first such word. If no word in the sentence has searchWord as a prefix, return -1.
Input Format:
The first line of input contains the sentence string.
The second line of input contains the searchWord string.
Output Format:
Print a single integer representing the 1-indexed position of the first word that has searchWord as a prefix.
If no such word is found, print -1.
Note:
A "prefix" is a contiguous sequence of characters at the beginning of a string. For example, "app" is a prefix of "apple".