-1
define a method that takes an array of integers and returns the largest sum of contiguous elements of the array.for example if the input is (1,-3,4,-2,-1,6)the method would return 7 found by adding 4 +(-2)+(-1)+6.
Similarly if the input array was (-2,11,-4,13,-5,-2) the method would return 20 fo...