Array-with-Pointer Inplementation of Stack