Help with debugging

sol : https://ide.codingblocks.com/s/396660

prob : https://hack.codingblocks.com/app/contests/2022/494/problem

1 test case is passing. I would like to know the mistake

Hey @raghav007 see for test case
4 2
Your output was something else, have debugged your code. Sometimes you have to analyze output format, and according to that you have to make recursive calls which will fit the output format. Here it’s a fault that test case should have been described with few more examples but it’s fine. Try submitting this solution. Now it’s getting accepted.

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.