Expedia Group Interview Question

Mirror a binary tree and write linear code