Google interview question

dynamic programming