Tiing problem- 2

Does this question dynamic programming or it can be solved by recursion

@ankitdelhi20 hey ankit this problem is solved by using dynamic approach but you can solve this problem recursively over small input recursion will not work in the case of larger input.

Thanks!
I will do it when Dp will be introduced.