Increase Subarray Javascript Interview Preparation