Sum amount per category and print 'category=total' sorted by total desc, alpha tiebreak.
CSV header: `category,amount`. Sum `amount` per category, then print one `category=total` per line, sorted by total **descending** (ties broken by category ascending).
Test input:
category,amount
food,10
gas,20
food,5
gas,15
rent,100
Expected output:
rent=100
gas=35
food=15
Sign in to save your code and track progress across devices.