Use Simple Array as Parking
\n\n# Code\n\nclass ParkingSystem {\n    int[] parking;\n    public ParkingSystem(int big, int medium, int small) {\n        parking = new int[4];\n        park
\n\n# Code\n```\nclass ParkingSystem {\n    int[] parking;\n    public ParkingSystem(int big, int medium, int small) {\n        parking = new int[4];\n        parking[1] = big;\n        parking[2] = medium;\n        parking[3] = small;\n    }\n    \n    public boolean addCar(int carType) {\n        if(parking[carType] == 0) return false;\n        parking[carType]--;\n        return true;\n    }\n}\n\n/**\n * Your ParkingSystem object will be instantiated and called as such:\n * ParkingSystem obj = new ParkingSystem(big, medium, small);\n * boolean param_1 = obj.addCar(carType);\n */\n```
['Java']