Index Pairs of a String
Given a string `text` and an array of strings `words`, return all index pairs `[i, j]` such that the substring `text[i...j]` (inclusive) is exactly equal to some string in `words`.
Given a string `text` and an array of strings `words`, return all index pairs `[i, j]` such that the substring `text[i...j]` (inclusive) is exactly equal to some string in `words`.