Deloitte interview question

Questions based on the Case Study. A few lines of code