Modified Error handling for Leap year
Implemented n-hops