Synopsys interview question

To check whether a binary tree is balanced or not