Question d’entretien chez Binance

Find if it is a balanced binary tree