Simple java two line code
\nclass ParkingSystem {\n    int a[] ;\n    public ParkingSystem(int big, int medium, int small) {\n        a = new int[3];\n        a[0] = big;\n        a[1] =
```\nclass ParkingSystem {\n    int a[] ;\n    public ParkingSystem(int big, int medium, int small) {\n        a = new int[3];\n        a[0] = big;\n        a[1] = medium;\n        a[2] = small;\n    }\n    \n    public boolean addCar(int carType) {\n        if (a[carType - 1] <= 0) return false;\n        a[carType - 1]--;\n        return true;\n       \n    }\n}\n\n```
['Java']