Lab 09: Hint peekTop()

The stub of peekTop() should look like this:

Item Stack::peekTop() const {
}

The variable mySize always contains the number of items in the Stack:

More generally, when the stack is not empty, the top item is 1 position “down” from the value of mySize.

So when the stack is not empty, peekTop() should return the item from myArray that is 1 less than the current value of mySize.