Pergunta de entrevista da empresa Mercari

Reverse a binary tree and explain your approach with time complexities