The Trade Desk Interview Question

Codewise assessment - 3 questions, all on algorithms