Two Subarrays Leetcode Javascript Solution Focused