Given a string
textand an array of stringswords, return an array of all index pairs[i, j]so that the substringtext[i...j]is inwords.Return the pairs
[i, j]in sorted order (i.e., sort them by their first coordinate, and in case of ties sort them by their second coordinate).