You are given a tree (a connected, acyclic undirected graph) with n nodes labelled 0 to n - 1 and n - 1 edges.
Rooting the tree at any node produces some height. Return all root labels that produce the minimum possible height, sorted ascending.
It can be proved there are always either one or two such roots.