Deloitte Interview Question

Technical coding round on salesforce scenario