結果 : write ac function for push and pop operation in stack