MSCI Interview Question

Check if a tree is balanced or not.