Design Amazon Locker
Medium · Low-Level Design · about 45 minutes
Asked at Amazon.
Design a self-service package locker station. A delivery agent deposits a package and the system assigns the smallest free compartment that fits (small, medium, large) and issues the customer a one-time pickup code. The customer enters the code to open the compartment. Codes expire after 3 days, after which the package is returned.