Bloomberg interview question

Write the code to implement a binary tree