Who codes on mobile !!
Though on a serious note,
If you only need to cound the number of subsequences, then it will be 2^n
where n
is the length of the string.
https://www.geeksforgeeks.org/print-subsequences-string/
thanks dude, i just figured the mistake in the code haha my pc wasn’t available that time lol