Domanda di colloquio di LiveRamp

Both questions from cracking the coding interview book.