PayPal Interview Question

Find all the paths from a give node given root node, a node and the distance?