Amazon Interview Question

Parking lot problem design.