One of the test case didn't passed

I think I missed one corner case, as one test is giving wrong answer, what did I missed

hi @paidaarpit1505_f9664148aad841e0, Print 0 if no such node exist at distance k, else code is correct

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.