Amazon interview question

Implement an algorithm to find if a BST is balanced.