LiveRamp interview question

A Dynamic programming question