Sixt Interview Question

Invert a binary tree in PHP.