Increase Subarray Javascript Interview Questions