Shopee Interview Question

Aggregate data based on a category