Frage im Vorstellungsgespräch bei Terralogic

Implement code for array which should be dynamic, also dynamic sliding window algorithm should be implemented on that array. And the program should return the sub array which meets the target of sum and product