Pergunta de entrevista da empresa Bloomberg

complexity of deleting and adding a node to a BST