Salesforce interview question

JavaScript async task sequencing question