Amazon Interview Question

write the code of inserting a node into a binary tree