Amazon Interview Question

Calculate distance between two nodes recursively.