Domanda di colloquio di Bloomberg

how to populate "next" pointers on a binary search tree. (next pointers point to the right neighboring node)