Given an integer year, return true if year is a leap year in the Gregorian calendar, otherwise return false. A year is a leap year if it is divisible by 4, except for years divisible by 100 unless also divisible by 400.
Example 1: Input: year = 2024 Output: true
Example 2: Input: year = 1900 Output: false
Constraints: 1 <= year <= 9999