Amazon interview question

Design a ticket ordering sustem