Genpact Interview Question

Write a program to invert a binary tree