TikTok Interview Question

I was asked binary search tree