Python Leap Year Hackerrank Solution