One test case is showing wrong answer but pattern is exactly similar and spaces are also same

https://ide.codingblocks.com/s/50310

Hey Kunj, mention the problem’s name also.

Name of the problem is Manmohan loves
pattern 1

Hey Kunj, your code is not handling some of the corner test cases. for eg.
input:
1

your code’s output :
1
11

but the expected output is:
1