Create a program to generate all possible substrings of a given string.
MediumProblem Statement
Create a program to generate all possible substrings of a given string.
Sample Input
"abc"
Sample Output
[ 'a', 'ab', 'abc', 'b', 'bc', 'c' ]
Limits
Time: 2s · Memory: 256 MB