Java - Easy to understand
\tclass ParkingSystem {\n    int big;\n    int medium;\n    int small;\n    public ParkingSystem(int big, int medium, int small) {\n        this.big = big;\n   
\tclass ParkingSystem {\n    int big;\n    int medium;\n    int small;\n    public ParkingSystem(int big, int medium, int small) {\n        this.big = big;\n        this.medium = medium;\n        this.small = small;\n    }\n    \n    public boolean addCar(int carType) {\n        switch(carType){\n            case 1 : return big-- > 0;\n            case 2 : return medium-- > 0;\n            case 3 : return small-- > 0;\n            default : return false;\n        }\n    }\n\t}
[]