Ruby program to display leap years