Pergunta de entrevista da empresa Yahoo

Write a program to find inorder successor of a node in a binary tree.You are given the root node and the node to which you need to find the inorder successor