You are given n strings s1, s2, · · · , sn and q queries. In i th query, you are given a string ti , please find
out how many strings in s1, s2, · · · , sn begins with ti .
You are given n strings s1, s2, · · · , sn and q queries. In i th query, you are given a string ti , please find
out how many strings in s1, s2, · · · , sn begins with ti .