X Interview Question

Dynamic programming