title: Hello how can i find the biggest average passangers in this array and the company with it?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function solve(input) {
    let avioCompanies = Number(input.shift())
    for (let i = 1; i &lt;= avioCompanies; i++) {
      var command = input.shift()
      let passangers = Number(input.shift())
      let avg = 0
      let count2 = 0
      while (passangers !== "Finish") {
        avg += passangers
        count2++
        passangers = input.shift()
      }
      avg /= count2
      console.log(`${command}: ${Math.floor(avg)} passengers.`);
  
  
    }
    console.log(``);
  }
  solve([2, "Qatar Airways", 95, 231, 323, "Finish", "LOT", 76, 89, 55, "Finish"])</code></pre>
  </div>
  </div>
  </p>