Deloitte interview question

Write Salesforce trigger in both rounds