The Trade Desk interview question

OOD question and algorithm question