LinkedIn Interview Question

2) Implement a function which modifies a binary tree so that the output is a mirror of the input. * * / \ / \ * * ----> * * / \ / \ * * * *