Print all nodes at a distance k from a given node in a bst

on submission it gives one wrong answer
i have added comments for ease of understanding
please tell me an example of test case that my code isnt able to handle
please help me

my code
https://ide.codingblocks.com/s/51402

question link
https://hack.codingblocks.com/contests/c/511/1604