The Trade Desk interview question

Online Coding Challenge