Cognizant interview question

Algorithm of leap year program