Solve the four dimensional DP problem to fetch the maximum money in a matrix for two people.