PayPal interview question

Implement a function to check if a binary tree is balanced.