discounts

Code for Discounts problem.