Nokia Interview Question

Inverse binary tree with help of python code