Given string S and a dictionary of words words, find the
number of words[i] that is a subsequence of S.
Example : Input: S = "abcde" words = ["a", "bb", "acd", "ace"] Output: 3 Explanation: There are three words inwordsthat are a subsequence ofS: "a", "acd", "ace".
Note:
words and S will only consists of lowercase
letters.
S will be in the range of [1, 50000].words will be in the range of [1, 5000].
words[i] will be in the range of [1, 50].