Print all nodes at distance k from a given node

logic how to find nodes at k distance

@Faizan-Ali-1395131367301898
Hey faizan refer to this link
Print all nodes at distance k