LiveRamp interview question

2 coding questions , 1 was Dynamic Programming question