Pregunta de entrevista de PayPal

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