Given a string text and an array of words, return every pair [i, j] such that text[i..j] is one of the words. Sort the pairs by i, then by j.
Practise this challenge
All coding challenges