Deloitte interview question

As described