Tiling problem 2 .. help


i have made program on tiling problem 2
it runs nicely when i provide custom inputs but when i do submit it says wrong answer

…please help …