Extend your cron parser to support cyclic (wrap-around) ranges, e.g. day-of-week 5-2 yields 5,6,7,1,2.
Asked in the Coding (take-home extension) stage.
Implement expand_day_of_week_range(expression). The input is a string containing either one day number or an inclusive range in the form start-end, where days are integers from 1 through 7. Return a list in traversal order. Non-cyclic ranges proceed upward, while cyclic ranges continue from 7 back to 1.
D or D-D.def expand_day_of_week_range(expression):