<p>Describe how you could use a single array to implement three stacks.</p>
<p>You should implement <code>push(stackNum, value)</code>、<code>pop(stackNum)</code>、<code>isEmpty(stackNum)</code>、<code>peek(stackNum)</code> methods. <code>stackNum<fontface="sans-serif, Arial, Verdana, Trebuchet MS"> </font></code><fontface="sans-serif, Arial, Verdana, Trebuchet MS">is the index of the stack. </font><code>value</code> is the value that pushed to the stack.</p>
<p>The constructor requires a <code>stackSize</code> parameter, which represents the size of each stack.</p>