Goldman Sachs interview question

Invert a binary tree