Is_Palindrome using recursion

Please check why 2 testcases are failing

Check for this:
3
a
b
a

Your code is giving output as false.

So basically in sublime text I had mentioned an ‘else’ which was giving me warning in CB IDE, therefore I removed it.
The code is now not working fine due to the removed else statement in bool function but working fine in sublime.

Hey! I changed the order of statements and now the code is working fine. Can you tell me what happened here? Also please explain why the previous code was only failing a few cases.

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.