Subarray Range With Given Sum Leetcode Javascript Problems