Java Solution - few lines of code
\nclass ParkingSystem {\n    \n    int [] parkingSpace;\n    public ParkingSystem(int big, int medium, int small) {\n        parkingSpace = new int[]{big, mediu
```\nclass ParkingSystem {\n    \n    int [] parkingSpace;\n    public ParkingSystem(int big, int medium, int small) {\n        parkingSpace = new int[]{big, medium, small};\n    }\n    \n    public boolean addCar(int carType) {\n        return (parkingSpace[carType-1]-- > 0);\n    }\n}\n```\n
['Java']