Please help to debug the given code


please help to solve the given code and send the corrected link

@harryson
hello harshit,
when k=0;
then u should return root->data;