Leetcode Subarray Products Hackerrank Javascript Problems Practice