Compute outer boundary of an N-ary tree | Uber