Unexpected Output in Grid Based Problems Webinar Last problem

ques: https://www.geeksforgeeks.org/maximum-points-collected-by-two-persons-allowed-to-meet-once/
my code: https://ide.codingblocks.com/s/63040

Can someone pls help me find the flaw in my logic

you could be missing some corner cases
I can tell u the Hint of the problem -> 2D-DP Problem.
Just for a every point find the maximum points P1 and P2 can get , if they meet this particular point and store it as DP.