Amazon Interview Question

dynamic programming problem - can't remember what it was