For each query String S, print the most occurring word in the book with S as prefix along with the number of occurrences of that word.If there are many such words, print the lexicographically smallest word. If there is no such word, print -1. Constraints 1≤ n ≤ 5×105 1≤ q ≤ ...