C++ || Easy Solution || O(1) space
\nclass ParkingSystem {\n    vector<int> space={0,0,0};\npublic:\n    ParkingSystem(int big, int medium, int small) {\n        space[0]=big;\n        space[1]=m
```\nclass ParkingSystem {\n    vector<int> space={0,0,0};\npublic:\n    ParkingSystem(int big, int medium, int small) {\n        space[0]=big;\n        space[1]=medium;\n        space[2]=small;\n    }\n    \n    bool addCar(int carType) {\n        if(space[carType-1]!=0) {\n            space[carType-1]--;\n            return true;\n        }\n        return false;\n    }\n};\n\n/**\n * Your ParkingSystem object will be instantiated and called as such:\n * ParkingSystem* obj = new ParkingSystem(big, medium, small);\n * bool param_1 = obj->addCar(carType);\n */\n```
['C']