Java | Easiest solution with 5 lines code
\nclass ParkingSystem {\n    \n    int[] cars = new int[3];\n\n    public ParkingSystem(int big, int medium, int small) {\n        cars[0] = big;\n        cars[
```\nclass ParkingSystem {\n    \n    int[] cars = new int[3];\n\n    public ParkingSystem(int big, int medium, int small) {\n        cars[0] = big;\n        cars[1] = medium;\n        cars[2] = small;\n    }\n    \n    public boolean addCar(int carType) {\n        if (cars[carType - 1] <= 0)\n            return false;\n        \n        cars[carType-1] -= 1;\n        return true;\n    }\n}\n```
['Array', 'Java']