Leetcode Maximum Subarray Solution Architect