Maximum-subarray-sum Given an array of integers, the goal is to efficiently find the subarray that has the greatest value when all of its elements are summed together.