Maximum Subarray Leetcode Problem Set For Thermodynamics