<p>Design an algorithm that accepts a stream of integers and retrieves the product of the last <code>k</code> integers of the stream.</p>
<p>Implement the <code>ProductOfNumbers</code> class:</p>
<ul>
<li><code>ProductOfNumbers()</code> Initializes the object with an empty stream.</li>
<li><code>void add(int num)</code> Appends the integer <code>num</code> to the stream.</li>
<li><code>int getProduct(int k)</code> Returns the product of the last <code>k</code> numbers in the current list. You can assume that always the current list has at least <code>k</code> numbers.</li>
</ul>
<p>The test cases are generated so that, at any time, the product of any contiguous sequence of numbers will fit into a single 32-bit integer without overflowing.</p>