Hacker Rank Leap Year Solution Python