Generate all the possible substrings using the characters of a given string. Write code. (The order of chars do not
matter, i.e., ac <=> ca)
i/p: abc
o/p: { a,b,c,ab,ac,bc,abc}
i/p: abc
o/p: { a,b,c,ab,ac,bc,abc}
<Modified the language of the question, to avoid any confusions>
----------------------------------------------------
I like this solution, though dfs is totally right