TikTok interview question

I was asked binary search tree