HT Media interview question

BST implementation using python