LiveRamp Interview Question

A Dynamic programming question