Check If a Word Occurs As a Prefix of Any Word in a Sentence | Leetcode 1455