Given an array of integers, calculate the largest sum of consecutive elements in the array. Here are some examples:
[-2, 1, 1, -1] // largest is 1, 1 or 2 [1, 2, 3, -3, 3] // largest is 1, 2, 3 or 6