34. Sum on Wednesdays

Medium

Given a date-indexed Series s, return the sum of the values that fall on a Wednesday (weekday == 2).

Sample data: s:

2015-01-01    0
2015-01-02    1
2015-01-05    2
2015-01-06    3
2015-01-07    4
2015-01-08    5
Freq: B
... (261 rows total)
Implement solve(...)