you give root binary tree contain digit 0 9 onlyEach roottoleaf path tree represent numberFor example roottoleaf path 1 2 3 represent number 123return total sum roottoleaf number test case generate answer fit 32bit integerA leaf node node child Example 1input root 123Output 25explanationthe roottoleaf path 12 represent number 12The roottoleaf path 13 represent number 13therefore sum 12 13 25example 2input root 49051output 1026explanationthe roottoleaf path 495 represent number 495the roottoleaf path 491 represent number 491the roottoleaf path 40 represent number 40therefore sum 495 491 40 1026 ConstraintsThe number nod tree range 1 10000 Nodeval 9The depth tree exceed 10