I would assume that the mystery function should accept the quantity and price of one item as arguments and return the price of this quantity with the discounts applied.



You need to accumulate...