Write a code to invert a binary tree in a programming language of your choice.

Free for the first 3 answer contributors

Interview question asked to Data Scientists interviewing at New Relic, Hewlett Packard, trivago and others: Write a code to invert a binary tree in a programming language of your choice..