The Trade Desk Interview Question

OOD question and algorithm question