void kdistance(Node* root, int k){ if(root){ if(k == 0){ std::cout<<"["<<root->data<<"]"<<std::endl; }else if(k > 0){ kdistance(root->left, k-1); kdistance(root->right, k-1); } } }