Fibonacci Pattern Ans not matching

Didn’t know any other method to solve. if u have any it will be gr8 help. in my ans there is problem in spaces acc to sample output .

@mangla.chirag
Your spacing seems fine.
Problem seems to be with the trivial testcases.
Input :
1

Expected Output :
0

Your Output :
0
1 1