Domanda di colloquio di LiveRamp

Pretty straight forward. Basic algorithm questions.