Question d’entretien chez The Trade Desk

Common interview-style problem in JS