Virtusa interview question

Leap year in java programming