Binance interview question

Find if it is a balanced binary tree