Amazon Interview Question

print all paths from root to leaf