Pregunta de entrevista de Mercari

Reverse a binary tree and explain your approach with time complexities