Print all nodes at distance k from a given node

https://ide.codingblocks.com/s/166081 getting test case 2 wrong

@Faizan-Ali-1395131367301898
It is mentioned in the problem statement that " Print 0 if no such node exist at distance k.". You have not covered this case. Check if i1==0 in the main() and if so , print 0. Else , do the remaining part that you have done in your code.