def new_value_part_2(seat: str, visible_count: int) -> str:
    """
    Returns the next state for one seat.
    """
    if seat == "L" and visible_count == 0:
        return "#"
    elif seat == "#" and 5 <= visible_count:
        return "L"
    else:
        return seat