Insert a node when there is a existing node

in a function, there are some nodes, when we insert new node to the function search left or right side which it wont to place .