Facebook | System Design | E-commerce - Apply discount on every nth order
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-12-24Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: E4, E5
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
Design a system for a high-traffic e-commerce (e.g. Amazon, Walmart) so that on every N-th order, a predetermined promotional discount (e.g. 25%) would be applied to the total price in real-time (i.e. not done asynchronously such as applying the discount retroactively after purchase).