Question d’entretien chez Amazon

Code question: how to compare two BST