StackAdapt interview question

Questions regarding the case study I had to submit