Pregunta de entrevista de Google

leetcode question about deleting a subtree