Leap Year Checker
The village's sacred calendar has been corrupted by the digital plague, causing its leap year calculations to fail. Farmers have planted crops at wrong times and festivals have been celebrated on incorrect dates. Village Elders have called for someone to step forward and fix the calendar's code to restore order to the village's timekeeping.
Find the bug in the leap year checker function and fix it.
What is a leap year?
- A year is a leap year if it is divisible by 4.
- It is not a leap year if it is divisible by 100 unless it is also divisible by 400.
Examples:
is_leap_year(2000) -> "Leap Year" is_leap_year(1900) -> "Not a Leap Year" is_leap_year(2004) -> "Leap Year"
The Elders suspect that the plague might have tempered with the numbers. Review the values used in the conditions and see if they are correct.