116. Weighted Average

Easy

Return the weighted average of 1-D array x using weights, i.e. sum(x * weights) / sum(weights).

Implement solve(...)