you give 0indexed array num consist positive integer you choose index j j sum digits number numsi equal numsjReturn maximum value numsi numsj obtain possible index j satisfy condition Example 1input num 184336137output 54explanation the pair j satisfy condition 0 2 number sum digit equal 9 sum 18 36 54 1 4 number sum digit equal 7 sum 43 7 50so maximum sum obtain 54example 2input num 10121914output 1explanation there number satisfy condition return 1 Constraints1 numslength 1051 numsi 109