Add Q2 answer

Please review, thanks!
Also, I tried to fully conform to the style guide, please let me know if there's anything I'm missing.
After pop() and contains() are changed to return int value, I found no way to indicate error status if 0 is a possible return value.  What would be the common way to handle this situation?