PayPal Interview Question

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