Thomson Reuters interview question

Invert a binary tree