Minimum Sum Subarray Leetcode, Now, regarding the brute force, it’s easy.