Toh problem recursion

not getting correct output

Change line 20 to toh(n,‘A’,‘C’,‘B’)
If still it gives the wrong answer then save your code on ide.codingblocks.com and share its link.

but my helper is B so why taking C?

In the question it is mentioned that ‘C’ is the helper.
Check the first line of the question

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.