Pergunta de entrevista da empresa Meta

Sort a binary tree and give the complexity of that.