Pattern with zeroes challenge

not passing all the testcases why?

Pls share your code so that I could check the mistakes .

https://hack.codingblocks.com/app/contests/2049/484/problem not passing the test https://ide.codingblocks.com/s/402660