Synology Interview Question

Return the paths from roots to leaves in a Tree