The stub of our constructor should look like this:
   ArrayQueue::ArrayQueue(unsigned capacity) {
   }
The constructor should behave as follows:
  1. If capacity is not positive, throw a QueueException with a suitable explanatory message;
  2. Otherwise: