J.P. Morgan interview question

Implement a binary tree insert function