>>110406912
that was my first thought, but k is different each query
class ProductOfNumbers {
public:
ProductOfNumbers() {
}
void add(int num) {
}
int getProduct(int k) {
}
};
/**
* Your ProductOfNumbers object will be instantiated and called as such:
* ProductOfNumbers* obj = new ProductOfNumbers();
* obj->add(num);
* int param_2 = obj->getProduct(k);
*/