Domanda di colloquio di PayPal

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