use optimize no use any heap memory dynamic programming to get array maximum summation in its sub arrays