The Trade Desk interview question

Codewise assessment - 3 questions, all on algorithms