Tell me about how you would approach a LeetCode-style question about managing inventory and lookups, including the three-phase approach.
Implement the function below using three phases: build the inventory map, process operations in order, and return lookup results. A restock adds units, a sell removes units only when sufficient stock exists, and a lookup records the current quantity or -1 for an unknown SKU.
Input: unique [sku, quantity] pairs and operation dictionaries. Output: quantities for lookup operations in order.
restock, sell, or lookupdef process_inventory(initial_inventory, operations):