Dell Technologies Interview Question

OOP problem design for parking