Question d’entretien chez PayPal

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