Reorder Routes to Make All Paths Lead to the City Zero
Given `n` cities numbered `0` to `n - 1` with `n - 1` undirected roads between them, implement `solve(n, edges)`. Reorient every road so all paths lead to city `0`. Return the minimum number of roads that must be reoriented.