Question d’entretien chez TikTok

I was asked binary search tree