Amazon Interview Question

Inverting a binary tree question