Anonymous Content interview question

2 dimentional array and dynamic programming