Synopsys interview question

Print all paths from root to leaf nodes