Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
All generated strings are of the same size. How can we generate all of these strings?
Do a backtracking on which each level of it has to choose one single (e.g. 'a') character or any character of the given parenthesized group (e.g. "{a,b,c}")