A ship has to transport cargo from one place to another, while picking up cargo along the way. Given the total amount of cargo and the types of cargo holds in the ship as arrays, create a function that returns true if all the cargo can fit on the ship, and false if it can't.
willFit(["M", "L", "L", "M"], [56, 62, 84, 90]) ➞ true
willFit(["S", "S", "S", "S", "L"], [40, 50, 60, 70, 80, 90, 200]) ➞ false
willFit(["L", "L", "M"], [56, 62, 84, 90]) ➞ true
Calculate the cargo as a whole, and not for each separate cargo hold (see example #2).