Print all nodes at k distance

I am getting wrong answer on two of the test cases.please help.sharing my code link: https://ide.codingblocks.com/s/70022

@sakshamm14 there is some modification required in the code you can now refer this.

Thanks for the help…got AC now in this question

@sakshamm14 hey saksham if you was satisfy with our support and clear the concept of this problem please mark your doubt as resolved in ask doubt section