Choose root to minimize edge reversals | Uber Interview Question