Create group_by_interval.php

Proposed solution for the "group by Interval" test.