static void findtheClosestManager() { var obj = new CareerCupQnA(); var obj1 = new TreesNGraph(); var tree = obj1.PopulateBinaryTree(); obj.ClosestManager(tree, 5, 10); Console.WriteLine("=============> {0} ", obj.GetClosestCommonManagers()); }