Amazon interview question

print all paths from root to leaf