Leetcode Subarray Products Hackerrank Javascript User Warning