Synopsys Interview Question

Print all paths from root to leaf nodes