Print the paths from the root to the leaf node