Wells Fargo Interview Question

Explain dynamic programming with your own example