Pergunta de entrevista da empresa Amazon

print all paths from root to leaf