how to filter array items in js without filter method?

here is the question

  • Filter out companies which have more than one ‘o’ without the filter method
  • 0: “Facebook”
    1: “Google”
    2: “Microsoft”
    3: “Apple”
    4: “IBM”
    5: “Oracle”
    6: “Amazon”