Class Assignment Question Recursion

This is the same problem as binary strings problem given above but this question is not giving A.C when i am using the same code which was giving A.C in binary string problem

@godboiboi
hello ashish,
a) use long long datatype

b) check output format,u r not printing in required output format