Question d’entretien chez IBM

Inverse a binary tree and optimize it.