Deloitte interview question

Technical questions based on prompts provided