Cognizant interview question

Write a program to check leap year?