2 test case do not pass ,

https://ide.geeksforgeeks.org/7stAi7zyvQ

Question- print k distance nodes in a tree
Please correct t he code wherever wrong

@gagankishor98 hey gagan we are very sorry for the late reply.I have corrected your code you can refer this.

Hey Gagan,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.