Taboola interview question

Got home assignment with 3 sections.