Deutsche Bank Interview Question

Dynamic Programming.