Globant interview question

Parking lot problem