I need to write a function, allCandyOrders(inventory), that returns an order object (I'm not sure what that means). The keys should be the names of the candies, and the values should be the amounts to be ordered. If the stock is greater than weekly average, order 0
if the stock is less than weekly average, order 2 times the average.

Example output:

```
{
  "Twizzlers": 400,
  "Sour Patch Kids": 200,
  "Milk Duds": 0,
  "Now and Laters": 0
}

```

Given array:

```
let inventory = [
  { candy: "Twizzlers", inStock: 180, weeklyAverage: 200 },
  { candy: "Sour Patch Kids", inStock: 90, weeklyAverage: 100 },
  { candy: "Milk Duds", inStock: 300, weeklyAverage: 170 },
  { candy: "Now and Laters", inStock: 150, weeklyAverage: 40 }
];

```

What I have so far:

```
function allCandyOrders(inventory) {
  for (let i = 0; i < inventory.length; i++) {
    if (inventory[i].inStock < inventory[i].weeklyAverage) {
      return inventory[i].weeklyAverage * 2;
    } else {
      return 0;
    }
  }
  return 0;
}

```