Pregunta de entrevista de Intercontinental Exchange

How to write source code that would add a new node into a binary tree?