Domanda di colloquio di The Trade Desk

Common interview-style problem in JS