Tiling Problem 2

This is my code

  • I have even used an array to store values (DP, memoization)
  • still i get wrong answer and TLE