Javascript simple solution with calss
\nclass ParkingSystem {\n    constructor(big, medium, small) {\n        this.spaces = [big, medium, small]\n    }\n    \n    addCar(kind) {\n        const freeS
```\nclass ParkingSystem {\n    constructor(big, medium, small) {\n        this.spaces = [big, medium, small]\n    }\n    \n    addCar(kind) {\n        const freeSpace = this.spaces[kind - 1] > 0\n        freeSpace && this.spaces[kind - 1]--\n        return freeSpace\n    }        \n}\n```
['JavaScript']