give sentence consist word separate single space searchword check searchword prefix word sentencereturn index word sentence 1indexed searchword prefix word if searchword prefix word return index word minimum index if word return 1A prefix string s lead contiguous substring s Example 1input sentence love eat burger searchWord burgOutput 4explanation burg prefix burger 4th word sentenceexample 2input sentence problem easy problem searchword prooutput 2explanation pro prefix problem 2nd 6th word sentence return 2 minimal indexExample 3input sentence tired searchWord yououtput 1explanation prefix word sentence Constraints1 sentencelength 1001 searchwordlength 10sentence consist lowercase english letter spacessearchWord consist lowercase english letter