Deloitte interview question

Problem faced in university