Citi interview question

Questions regarding CS, Math and a case study