Sixt interview question

Mirror a tree