Tipalti Interview Question

how to invert binary tree