Simply Python Using Dictionary
\'\'\'\nclass ParkingSystem:\n\n    def init(self, big: int, medium: int, small: int):\n        self.spaces = {1:big, 2: medium, 3: small}\n        \n\n    def 
\'\'\'\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.spaces = {1:big, 2: medium, 3: small}\n        \n\n    def addCar(self, carType: int) -> bool:\n        if self.spaces[carType] == 0: \n            return False\n        else: \n            self.spaces[carType] -= 1\n            return True\n\'\'\'
[]