Print all nodes at distance k from a given node - failing testcases

Failing in 2 cases. Please help me out with this. https://ide.codingblocks.com/s/107530

@koshimagoyal97
Your code is absolutely correct. Just you need to print the k far nodes at a particular level in inc order.(sorted manner).
e.g. The Code is printing at a level the node as 85 17 which is to be printed as 17 85.
I hope you will be able to modify your code.
If doubt still persists revert back here else mark the doubt as resolved.

I did as told but still one test case is failing.

@koshimagoyal97
Correct code with comments added where you were missing the logic.
https://ide.codingblocks.com/s/109648

@mailmeanmolbansal Thanks alot