Too Long; Didn't Read
We have an arbitrary binary tree, a node of that tree, and also an integer: 'K.'
We need to print all such nodes which have a distance K from the given node and return the list of these nodes.
You can check out this problem here as well: Print Nodes at Distance k from Node.
The distance between the two nodes in a binary tree is defined as the number of connections/edges in the path between the two nodes.