A tree node
public class Node { public int key ; public Node left , right , parent ; public Node ( int key ) { this . key = key ; left = right = parent = null ; } } class GFG { public Node root , n1 , n2 , lca ;