Bloomberg Interview Question

Find wether a tree is balanced and is a BST