Fibonacci Pattern (Pattern 4) Ans not matching

Don’t know what the problem is but my testcase # 3 is wrong.

@mangla.chirag hey chirag tell me one thing If I run your program without giving input your output will
0
1 1
Which is not a good idea to do this program