Cognizant Interview Question

Algorithm of leap year program