Solution to leap year