public void exit(Car car){
        if(parkingLotsBelongingToColor.containsKey(car.getColor())==false){
            System.out.println("Car with the color doesnt exist");
            return;
        }
        if(parkingLotHashMap.containsKey(car.getRegistrationNumber())==false){
            System.out.println("Car with the registration number is not parked so cannot exit ");
            return;
        }

        parkingLotsBelongingToColor.remove(car.getColor());
        int parkingLotNumber = parkingLotHashMap.remove(car.getRegistrationNumber());
        rulesManager.exit(parkingLotNumber);
        System.out.println("Car with reg number "+car.getRegistrationNumber()+" is exiting from the parking lot number "+parkingLotNumber);
    }