Custom Stack Implementation Using Array