This problem is paper-only - see explanation for the canonical SQL solution. The auto-grader validates an in-memory simulation that produces the same result an INNER JOIN would.
Given two tables:
Customers(id, name)
Orders(id, customer_id, total)
Return the distinct names of customers who have placed at least one order, sorted alphabetically.
For the auto-grader: implement customersWithOrders(customers, orders) where each list contains plain objects matching the schema. Return a sorted array of customer names.