print at k distance from a node