Given an array of positive numbers I need to find the maximum of the expression (j - i)*(a[j] + a[i]) where j and i are array indices. I tried using divide and conq
(j - i)*(a[j] + a[i])