Getting wrong answer in tilling problem 2

use top down dp , using recursion will result in a stackoverflow