Nomura Interview Question

How will you find the next element in a binary search tree if a reference to the current element is provided? Write code for the same.