Deloitte interview question

Introduction