Lld
Low-Level Design
Easy
SecureParcel Locker System
Design a software controller for a physical smart locker hub used by various couriers. The hub contains lockers of different sizes (S, M, L, XL). The system must handle: 1) Couriers depositing packages by finding the smallest available locker that fits the package, 2) Generating a unique pickup code, 3) Customers retrieving packages, and 4) Maintenance staff marking lockers as 'Out of Service'. Ensure the system is extensible for new sizing logic or locker types (e.g., refrigerated).
Key concepts
state patternstrategy patternfactory method
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now