Total Revenue per Category

Asked at Meta · Coding Questions · Difficulty: Easy · Last asked Apr 17, 2026

An order export lists one row per order line, each with a product category and the revenue it earned. Some rows have no revenue recorded yet. Write a function that totals the recorded revenue for each category, ignoring the rows with no revenue.

Loading the problem…