Cognizant Interview Question

leap year question , oops concepts