Stack implementation

Stack implemented using array.