Taboola Interview Question

Got home assignment with 3 sections.