what is the output format of this question ?. genarating all possible strings but getting wrong answer
Getting wrong answer
actually your output prints a extra , (comma) at end
that’s why it is giving wrong ans
i have done one change while printing you can see it in modified code below
Modified Code
if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like : and don’t forgot to mark doubt as resolved