Design a coupon pricing engine | Applied Intuition Interview Question