Trying to get a list of all substrings currently I have a function but it's not fully complete. Im using minimum char of 4. What would be a good approach to complement this:
Im also need to find words like "predict", how can this be done best and fastest?
Output
Word: predictions
Substring: predictions
Substring: redictions
Substring: edictions
Substring: dictions
Substring: ictions
Substring: ctions
Substring: tions
Substring: ions