Leetcode Subarray Products Hackerrank