MORSE simulation timelines may need a list of calendar years that contain an extra day. Given an inclusive range of years, return every leap year in that range in ascending order.
A year is a leap year under the Gregorian calendar if it is divisible by 4, except for century years, which must also be divisible by 400. For example, 2000 is a leap year, while 1900 is not.
Implement leap_years_since(start_year, end_year).
start_year and end_year, representing the inclusive range to inspect.start_year through end_year, in ascending order.def leap_years_since(start_year, end_year):