Tiling problem(test case failing)

https://ide.codingblocks.com/s/52454
Here’s the link to my code. It’s only passing one test case.

Hey Yatharth, your code is not correct, i have corrected the mistakes in your code you can check this.