simple java solution
class ParkingSystem {\n    \n    int[] park = new int[3];\n\n    public ParkingSystem(int big, int medium, int small) {\n        park[0]=big;\n        park[1]=m
class ParkingSystem {\n    \n    int[] park = new int[3];\n\n    public ParkingSystem(int big, int medium, int small) {\n        park[0]=big;\n        park[1]=medium;\n        park[2]=small;\n    }\n    \n    public boolean addCar(int carType) {\n        return park[carType-1]-- > 0;\n    }\n}\n![image](https://assets.leetcode.com/users/images/dd907c2c-44a2-4592-b56d-c5505346c725_1664716134.068228.png)\n\n
['Java']