Consider: vector accumulated_products ( vector nbrs ); // Returns the accumulated products of the numbers in nbrs. // The returned vector result has the same size as nbrs. // result[0] = nbrs[0], and for i > 0: // result[i] = result[i-1] * nbrs[i]. For example, the accumulated products of 2, 3, 0.5, −1, 1.5 are the numbers 2, 6, 3, −3, −4.5. Write the definition of the function accumulated products