Ganesha's pattern

i have attempted this problem. and i have solved it also.
here is the link: https://ide.codingblocks.com/s/50473

the problem is that all the test case of this problem is passed except one,which i am not able to know where is the mistake as it worked fine in my compiler (eclipse/intellij).

input: all odd no.>=5

Hey Pulkit, your code is correct and its passing all the test cases, try to submit it once again.