Commented solution to leapyear exercise