DP problem help

@vikasnitt. did u get any solution? If yes, then please share it.

Good test case. Thanks.
The optimal solution is probably this: Maximum points from top left of matrix to bottom right and return back - GeeksforGeeks