IBM Interview Question

Inverse a binary tree and optimize it.