Pregunta de entrevista de ABBYY

Check if the binary tree is balanced