Deloitte interview question

Basics