Deloitte interview question

Example of problem solving