REVOLVE interview question

How to create and balance a Binary Search Tree in MySQL/SQL