Leetcode Subarray Products Leetcode Contest Solution