completed it for the example array, i commented it out as a attempted to make a formula that could accept other sized arrays