How would you retrieve accounts that don't have any opportunities?
Asked in the first round stage.
Given Salesforce Accounts and Opportunities as Python lists of dictionaries, return Account IDs with no related Opportunity. Preserve the input Account order and treat repeated Opportunity records as one relationship.
accounts contains dictionaries with an id field. opportunities contains dictionaries with an account_id field. Return a list of Account IDs absent from all Opportunity account_id values.
def accounts_without_opportunities(accounts, opportunities):