Deloitte interview question

Excel formulas