Junglee Games interview question

2d dp problem which was based on a matrix