Closest Watched Node on a Network Route
You operate the observatory desk of a nationwide relay network. The network grew without any redundancy, so it is a tree with `n` hubs numbered `0` to `n - 1`, rooted at hub `0`, which acts as the gateway. The links are given as `edges`, where `edges[i] = [ui, vi]` describes a bidirectional fiber link between hubs `ui` and `vi`. Because the topology is a tree, exactly one simple route connects any pair of hubs.