Uber interview question

Question on Dynamic Programming