Amazon interview question

dynamic programming problem - can't remember what it was