Company: jubliant_19sep
Difficulty: medium
Alloy Production Problem Description A foundry produces an alloy using n different metals. For each metal: composition[i] represents the quantity required for 1 unit of alloy stock[i] represents the current inventory cost[i] represents the cost per unit Given a limited budget, determine the maximum units of alloy that can be produced using the available stock plus what can be purchased within the budget. Complete the function findMaximumAlloyUnits in the editor with the following parameters: int composition[n] : the composition of metals in 1 unit of alloy int stock[n] : the units of metal type i that the company has in stock int cost[n] : the costs of metal type i int budget : the total money the company can spend Returns: int : the maximum unit of alloys that can be produced int findMaximumAlloyUnits(vector<int> composition, vector<int> stock, vector<int> cost, int budget) { // Function body to be implemented } Examples Example 1: Input: n = 2 composition = [1, 2] s