Pergunta de entrevista da empresa The Commons XR

They asked me to write code to invert a binary tree