Question d’entretien chez The Commons XR

They asked me to write code to invert a binary tree