Stripe Interview Question

calculate sales data based on varying input and constraints