Cognizant interview question

leap year question , oops concepts