Pregunta de entrevista de Cadence Design Systems

Check if binary tree is balanced or not