Deloitte Interview Question

Introduction only and the end