Https://ide.codingblocks.com/s/261306

my output is correct how i formed it in reverse ordewr

hello @Aditya-Kushwaha-914550392281281
image
place this line before line 10.

why its not showing myy coorect output length https://ide.codingblocks.com/s/261319

ur logic to get length is wrong.
number of subsequence will be 2^n where n is the length of given string.
so simply print pow(2,n)