Gojek interview question

Design and Code Parking Lot Problem