Could you please help me with code of this fibonacci pattern (4) problem?

i am able to print the fibonacci series but not to print it in the pattern form. so please share the code of the problem

i have commented the Steps

Reference Code