with input abcd my output is “abcd abc abd ab acd ac ad a bcd bc bd b cd c d
16”
whereas the output must be printed in the reverse order
with input abcd my output is “abcd abc abd ab acd ac ad a bcd bc bd b cd c d
16”
whereas the output must be printed in the reverse order