Longest Subarray With Given Sum Leetcode Javascript Questions