REVOLVE Interview Question

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