
Open any spreadsheet and type the date February 29, 1900. Excel says it exists. It never did: 1900 was not a leap year, because a century is a leap year only when it divides by 400. Microsoft kept the phantom day on purpose, back in 1985, to stay compatible with Lotus 1-2-3, and it is still sitting in every copy of Excel today. Your job is the honest rule, with no day that never happened.
Repair this code
Repair the leap-year rule so a century year counts as leap only when it is divisible by 400.
Steps
$ feb_days(1900)
28
$ feb_days(2000)
29
$ feb_days(2024)
29
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...