Salesforce interview question

Design and code API for Inventory with given output. Project related questions