Leetcode Subarray Products Hackerrank Python Interview