https://hack.codingblocks.com/contests/c/537/1045
https://ide.codingblocks.com/s/56149
Only 1 test case is passing, rest are showing tle,tiling problem
Hey Agraj, as the constraints are large so you are supposed to use Dynamic Programming approach to solve this problem.