Fibonacci pattern(pattern 4)

https://hack.codingblocks.com/submission/1145374
in this code my 3rd test case is failing everytime

we can not access your submission/code from this link. Copy it to ide.codingblocks and add the link here. Also provide the problem link separately.