MSCI interview question

Check if a tree is balanced or not.