Kotlin Solution
\nclass ParkingSystem(var big: Int, var medium: Int, var small: Int) {\n    fun addCar(carType: Int): Boolean {\n        return when (carType) {\n            1 
```\nclass ParkingSystem(var big: Int, var medium: Int, var small: Int) {\n    fun addCar(carType: Int): Boolean {\n        return when (carType) {\n            1 -> big-- > 0\n            2 -> medium-- > 0\n            3 -> small-- > 0\n            else -> false\n        }\n    }\n}\n```
['Kotlin']