J.P. Morgan interview question

Balance a BST on insertion/deletion.