48. Sum per First Level

Medium

Sum the values in s for each label in the first level (totals for A, B, C).

Sample data: s:

A  0    0
   1    1
   2    2
   3    3
   4    4
   5    5
... (30 rows total)
Implement solve(...)