Amazon interview question

write the code of inserting a node into a binary tree