Pregunta de entrevista de Cognizant

Write a program to check leap year?