Simple Javascript
\nvar ParkingSystem = function(big, medium, small) {\n    this.counts = [null,big,medium,small]\n}\n\nParkingSystem.prototype.addCar = function(carType) {\n    
```\nvar ParkingSystem = function(big, medium, small) {\n    this.counts = [null,big,medium,small]\n}\n\nParkingSystem.prototype.addCar = function(carType) {\n    if ( this.counts[carType] ) {\n        this.counts[carType]--\n        return true\n    }\n    return false\n}\n```\n
['JavaScript']