you give integer array num sort nondecrease orderBuild return integer array result length num resulti equal summation absolute difference numsi element arrayin word resulti equal sumnumsinumsj 0 j numslength j 0indexed Example 1input num 235output 435explanation assume array 0indexe thenresult0 22 23 25 0 1 3 4result1 32 33 35 1 0 2 3result2 52 53 55 3 2 0 5example 2input num 146810output 2415131521 Constraints2 numslength 1051 numsi numsi 1 104