Question d’entretien chez Two Sigma

Construct tree from given array. Write a method for removing a subtree, given the root of the subtree.