The function isLeapYear(year: String): Boolean takes a year as a parameter and returns true if it is a leap year. Write the correct code for the isLeapYear() function.
You don't need to implement any algorithm for leap years, just remember that if you try to create an Instant for a non-valid day, an exception is thrown.