36. Peak Date per 4 Months

Hard

Given a date-indexed Series s, for each group of four consecutive calendar months return the date on which the highest value occurred.

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(...)