Amazon interview question

Invoicing process, Discount working process