Simple JAVA code (no arrays or maps)
\nclass ParkingSystem {\n    \n    private int big;\n    private int medium;\n    private int small;\n    \n    \n    public ParkingSystem(int big, int medium, 
```\nclass ParkingSystem {\n    \n    private int big;\n    private int medium;\n    private int small;\n    \n    \n    public ParkingSystem(int big, int medium, int small) {\n        \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){\n            big--;\n            return true;\n        }\n        \n         else if(carType ==2 && medium>0){\n            medium--;\n            return true;\n        }\n        \n         else if(carType ==3 && small>0){\n            small--;\n            return true;\n        }\n        \n        return false;\n    }\n}\n```
[]