C # program to find distance between two nodes in BST
using System ; class GfG { public class Node { public Node left , right ; public int key ; } static Node newNode ( int key ) { Node ptr = new Node ( ) ; ptr . key = key ; ptr . left = null ; ptr . right = null ; return ptr ; }