Valid The Coupon Code
Your online store likes to give out coupons for special occasions. Some customers try to cheat the system by entering invalid codes or using expired coupons.
Write a function called
checkCoupon to verify that a coupon is valid and not expired. If the coupon is good, return
true. Otherwise, return
A coupon expires at the END of the expiration date. All dates will be passed in as strings in this format: “June 15, 2014”