Coding error one testcase failed

whats wrong in my code??
I wrote the same code on hackerblocks and passed all the testcase but here I am getting one testcase failed and the rest as passed

Save your code on ide.codingblocks.com and then share its link.

it’s been more than 24 hrs sir?

my query has not been resolved

Logic of your code seems correct.
I think your code is failing for n=1…
Output should be:
1
Your o/p:
_1 (where _ is for space).


Check now.