def check_constraint(variables_set: set, value: int):
    """
    This function is used to check whether the given constrain is valid of not
    :param variables_set: variables of the constraint
    :param value: value of the given constraint
    :return: True if the constraint can be satisfied otherwise False
    """
    if (len(variables_set) < value) or (value < 0):
        return False
    return True