Sixt interview question

Invert a binary tree in PHP.