...

/

Challenge: Print All the Paths

Challenge: Print All the Paths

Let’s print all the paths from the root node to the leaf node.

Problem

Given a binary tree, print all the paths from the root to the leaves.

Input

The root of a binary tree.

Output

Display all paths in the binary tree.

Sample input

The root ...