Simple Java Solution 100% Time and Space
\nclass ParkingSystem {\n    int[] sizes;\n    public ParkingSystem(int big, int medium, int small) {\n        this.sizes = new int[]{big,medium,small};\n    }\
```\nclass ParkingSystem {\n    int[] sizes;\n    public ParkingSystem(int big, int medium, int small) {\n        this.sizes = new int[]{big,medium,small};\n    }\n    \n    public boolean addCar(int carType) {\n        return this.sizes[carType -1] -- >0;\n    }\n}\n```
['Array']