Sollicitatievraag bij Brane Enterprises (nslhub)

Write a code for the maximum sum for a contiguous subarray?