Leetcode Subarray Products Hackerrank Solutions