Self Explanatory Code
\nclass ParkingSystem {\n\n    int big, medium, small;\n    public ParkingSystem(int big, int medium, int small) {\n        this.big = big;\n        this.medium
```\nclass ParkingSystem {\n\n    int big, medium, small;\n    public ParkingSystem(int big, int medium, int small) {\n        this.big = big;\n        this.medium = medium;\n        this.small = small;\n    }\n    \n    public boolean addCar(int carType) {\n        if(carType == 1 && big == 0 || carType == 2 && medium == 0 || carType == 3 && small == 0)\n            return false;\n        if(carType == 1) big--;\n        if(carType == 2) medium--;\n        if(carType == 3) small--;\n        return true;\n    }\n}\n\n/**\n * Your ParkingSystem object will be instantiated and called as such:\n * ParkingSystem obj = new ParkingSystem(big, medium, small);\n * boolean param_1 = obj.addCar(carType);\n */\n```
[]