Write an algorithm to perform one of the following tasks,
* “Word Search”: Given a string of letters, identify all substrings that create one of five given words. For example, if the words (arguments) are: structure; such; system; blue; red, then the string jkdistructureds trusyssystemoon contains the first, third and fifth words, once each.
* “Word Search”: Given a string of letters, identify all substrings that create one of five given words. For example, if the words (arguments) are: structure; such; system; blue; red, then the string jkdistructureds trusyssystemoon contains the first, third and fifth words, once each.
Comment