Sum Root to Leaf Numbers

Each root-to-leaf path forms a number by concatenating digits. Return the sum of all such numbers.

Examples
Input: [1,2,3]
Output: 25
Hints

Sum Root to Leaf Numbers

Each root-to-leaf path forms a number by concatenating digits. Return the sum of all such numbers.