LiveRamp Interview Question

Pretty straight forward. Basic algorithm questions.