Easy C++ solution
\nclass ParkingSystem {\npublic:\n    int big,medium,small;\n    ParkingSystem(int big, int medium, int small) {\n        this->big=big;\n        this->medium=m
```\nclass ParkingSystem {\npublic:\n    int big,medium,small;\n    ParkingSystem(int big, int medium, int small) {\n        this->big=big;\n        this->medium=medium;\n        this->small=small;\n    }\n    \n    bool addCar(int carType) {\n        if(carType==1) {\n            if(big>0) {\n                big--;\n                return true;\n            }\n            else {\n                return false;\n            }\n        }\n        else if(carType==2) {\n            if(medium>0) {\n                medium--;\n                return true;\n            }\n            else {\n                return false;\n            }\n        }\n        else {\n            if(small>0) {\n                small--;\n                return true;\n            }\n            else {\n                return false;\n            }\n        }\n    }\n};\n```\n***Please upvote if you have got any help from my code. Thank you.***
['C', 'Counting']