Deloitte interview question

Not much difficult