Company: Nokia_7june
Difficulty: medium
You are building an order management system for an online grocery store. The store has multiple products, and customers can place orders. Each product can only be ordered if it is available in stock. Your task is to process customer orders and return the result for each order in the same sequence as received: If the product is available in the inventory and the requested quantity can be fulfilled, deduct it from the inventory and return the product name with the updated quantity. If the product is not available in the inventory or the available quantity is insufficient, the order should not be fulfilled, and -1 should be returned for that product. Note: You only need to return results for customer-ordered products — not the entire inventory. Function Description You must implement the function manageOrders . Parameters n : An integer representing the number of different products N in the inventory. product_name : A list of N strings, each representing a product name in the inventory. q