Uniper Interview Question

Write a function to calculate if a year is a leap year.