Help with error

code: https://ide.codingblocks.com/s/469003

problem: https://hack.codingblocks.com/app/contests/2142/145/problem

I’m having trouble with extracting the characters in the code please check also is my logic in the code correct?

hello @raghav007

either use indexing or decrease string on each call.
dont do both together

I can see the use of indexing only in the base case, I rectified it but it’s not working

pls share ur updated code linl

pls check now->

there is a mistake in every single line.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.