Challenge Information

Title : Maximum subarray sum
Difficulty : Hard
Solutions : 6
Maximum Score : 200
Completed by You: No
Description :

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.

Write a function solve that have the following parameter(s):
1.) a = an array of integers

Example
Input:
[34, -50, 42, 14, -5, 86] Output:
137

Explanation The subarray [42, 14, -5, 86], the sum of this will give you output 137.

Constraints

Judocode