Expedia Group interview question

Mirror a binary tree and write linear code