Design a locker

Medium
Company: Premium
GoogleAmazon

Imagine you're building a smart locker system, like those found in apartment complexes or parcel delivery services. These aren't your old school gym lockers. They need to be flexible, secure, and able to handle different users (residents, delivery drivers, admins), various package sizes, and potential integrations with other building management systems. This problem focuses on the core logic of managing these lockers: allocating them, storing packages, and ensuring only authorized users can access the contents. We need a robust, extensible design that can adapt to future requirements like temperature-controlled lockers or more sophisticated access control mechanisms.

Requirements

Interview Simulation

Experience a realistic interview conversation. The interviewer will ask clarifying questions,and you'll reveal your understanding of the requirements.

Interviewer

Let's start by understanding the scope. What are the core functionalities this system needs to provide?

💡 Interview Tip

Identify the Actors (Who uses the system?) and their Use Cases (What are they trying to achieve?). Start with the 'Happy Path' scenarios.

Press ⌘ + Enter to submit

Premium Content

View detailed solutions.

UNLOCK PREMIUM