The forest is a 4×4 board. From cell (i,j), Marisa can go to (i+1,j) or (i,j+1).
Cell (i,j) has Ai,j mushrooms. Marisa’s journey start from (1,1) and end at (4,4), what is the maximum number of mushrooms she can obtain?
Input:
2 2 2 1
1 1 2 1
1 1 2 1
1 1 2 2
Output:
14