Can't pass 2 testcases in Print all nodes at k distance

code link (https://ide.geeksforgeeks.org/ns9EClCJBI)

Plz send the code by saving on ide only.

Sorry, I couldn’t find on how to do that on cb ide.

Plz type, https://ide.codingblocks.com, then paste your code and save it by clicking on save button at top. Then id will be generated, paste that id here.