Pregunta de entrevista de IBM

Inverse a binary tree and optimize it.