Company: Microsoft_17july
Difficulty: medium
findMaximumAlloyUnits Problem Description A foundry in Hexland makes an alloy out. There are n different types of metal. For an alloy, the composition of each metal is fixed, where composition[i] is the units of metal i in preparing 1 unit of the alloy. The unit of alloy is denoted by composition[i] . The company already has stock[i] units of metal i in their stock. The company has a budget to purchase any of the metals if needed. The cost of the metal i is cost[i] per unit. Find the maximum units of alloys that can be produced by using available stock plus what they can purchase within their budget. Note: Their supplier has an infinite supply of all metal types. Function Description Complete the findMaximumAlloyUnits function below. int findMaximumAlloyUnits(vector<int> composition, vector<int> stock, vector<int> cost, int budget) The function accepts the following parameters: composition : An integer array representing the composition of metals in 1 unit of alloy. s