Print-nodes-distance-k-given-node-binary-tree

https://hack.codingblocks.com/contests/c/471/1604

This is the question link.

https://ide.codingblocks.com/#/s/18646

this is the code id 'm getting … run error for one test case and one wrong ans.
also 2 correct ans.
where am I doing mistake ?