Bloomberg interview question

Set neighbors to the right for each node in a binary tree.