SAP Ariba Interview Question

program to find if the binary tree us height balanced