Salesforce interview question

University Career Fair LC problem