Simple Swift solution
Simple Swift solution\n\nclass ParkingSystem {\n\n    private var lot: [Int]\n\n    init(_ big: Int, _ medium: Int, _ small: Int) {\n        lot = [0, big, medi
Simple Swift solution\n```\nclass ParkingSystem {\n\n    private var lot: [Int]\n\n    init(_ big: Int, _ medium: Int, _ small: Int) {\n        lot = [0, big, medium, small]\n    }\n    \n    func addCar(_ carType: Int) -> Bool {\n        if lot[carType] < 1 {\n            return false\n        }\n        lot[carType] -= 1\n        return true\n    }\n}\n```
['Swift']