Getting wrong ans on some test cases

please check into the code for tilling problem 2
getting only 1 correct ans

Plz send your code by saving on ide