結果 : write ac function for array implementation of stack