def min_connection_cost(n: int, connections: list[list[int]]) -> int:
    # your move
