Question d’entretien chez PayPal

Implement a function to check if a binary tree is balanced.