EASIEST SOL 10 LINES?
Code
# Code
```python3 []
class ProductOfNumbers:

    def __init__(self):
        self.nums_prod = [1]
        self.latest_zero = -1
    def add(self, num: int) -> None:
        if num == 0:
            self.latest_zero = len(self.nums_prod)
        self.nums_prod.append(max(self.nums_prod[-1]*num, 1))

    def getProduct(self, k: int) -> int:
        if self.latest_zero > len(self.nums_prod)-k-1:return 0
        return self.nums_prod[-1] // self.nums_prod[len(self.nums_prod)-k-1]


# Your ProductOfNumbers object will be instantiated and called as such:
# obj = ProductOfNumbers()
# obj.add(num)
# param_2 = obj.getProduct(k)
```
['Python3']