Print all nodes at distance k from given node

i am unable to solve this problem, can anyone explain step-by-step how to go about it and solve it? would be really helpful!
Regards,