LinkedIn Interview Question

Dynamic programming