Leetcode 209 - Minimum Size Subarray Sum JavaScript