adding solution for leap year